package sch.frog.behavioral.interpreter.calculator.expression.right;

import sch.frog.behavioral.interpreter.calculator.expression.Expression;

/**
 * 运算符在右边的表达式
 */
public abstract class RightExpression implements Expression {

    public abstract double interpret();

    public abstract Expression getLeft();

    public abstract void setLeft(Expression left);

    @Override
    public abstract int getPriority();

    @Override
    public boolean isLeaf() {
        return false;
    }

    @Override
    public boolean createBranch(Expression expression) {
        return false;
    }

    @Override
    public Expression assembleTree(Expression expression) {
        if(expression.getPriority() == this.getPriority()){

        }else{

        }
        return null;
    }
}
